
<!-- 顶部导航栏 -->
<nav class="navbar navbar-expand-lg navbar-light bg-light ">
    <div class="w-25">
    <a class="navbar-brand" href="http://www.baotr.xyz/" style="margin-left:10%;">
      <img src="../assets/img/logo.png" width="170" height="46" >
    </a>
    </div>

    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar">
      <span class="navbar-toggler-icon"></span>
    </button>

    <div class="collapse navbar-collapse" id="collapsibleNavbar">
     
      <ul class="navbar-nav">
          <li class="nav-item active">
              <a class="nav-link" href="http://www.baotr.xyz/">首页 <span class="sr-only">(current)</span></a>
            </li>
        <li class="nav-item dropdown" >
          <a class="nav-link dropdown-toggle" data-toggle="dropdown"  role="button" aria-haspopup="true" aria-expanded="false">新闻部分</a>
          <div class="dropdown-menu">
            <a class="dropdown-item" [routerLink]="['newslistforuser']">新闻列表</a>
            <a class="dropdown-item" [routerLink]="['editnews','add']">发布新闻</a>
            <a class="dropdown-item" [routerLink]="['newslist']">新闻管理</a>
            
            
          </div>
        </li>
        <li class="nav-item dropdown">
          <a class="nav-link dropdown-toggle" data-toggle="dropdown"  role="button" aria-haspopup="true" aria-expanded="false">单页部分</a>
          <div class="dropdown-menu">
            <a class="dropdown-item" [routerLink]="['showSinglepagelist']">单页列表</a>
            <a class="dropdown-item" [routerLink]="['editSinglepage','add']">发布单页</a>
            <a class="dropdown-item" [routerLink]="['uploadSinglepage']">单页管理</a>
         </div>
        </li>
  
        <li class="nav-item dropdown">
          <a class="nav-link dropdown-toggle" data-toggle="dropdown"  role="button" aria-haspopup="true" aria-expanded="false">轮播部分</a>
          <div class="dropdown-menu">
            <a class="dropdown-item" [routerLink]="['showcarousel']">轮播区显示</a>
            <a class="dropdown-item" [routerLink]="['editCarousel','add']">新增轮播图</a>
            <a class="dropdown-item" [routerLink]="['uploadfile']">轮播区管理</a>
          </div>
        </li>

        <li class="nav-item dropdown">
          <a class="nav-link dropdown-toggle" data-toggle="dropdown"  role="button" aria-haspopup="true" aria-expanded="false">课程表</a>
          <div class="dropdown-menu">
            <a class="dropdown-item" [routerLink]="['courseindex']">课表主页</a>
            <a class="dropdown-item" [routerLink]="['scheduling']">排课</a>
            <a class="dropdown-item" [routerLink]="['book']">课程设置</a>
            <a class="dropdown-item" [routerLink]="['teacher']">教师设置</a>
            <a class="dropdown-item" [routerLink]="['classroom']">教室设置</a>
            <a class="dropdown-item" [routerLink]="['student']">班级设置</a>
          </div>
        </li>

        <li class="nav-item active">
            <a >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="sr-only">(current)</span></a>
          </li>
        

        <li class="nav-item dropdown" >
            <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
            <img src="\assets\img\g.jpg" class="rounded-circle" style="width:30px;" />
            </a>
            <div class="dropdown-menu" aria-labelledby="navbarDropdown">
              <a class="dropdown-item" [routerLink]="['editnews','add']">发布文章</a>
              <a class="dropdown-item" [routerLink]="['newslist']">歌单管理</a>
              <a class="dropdown-item" [routerLink]="['uploadfile']">轮播管理</a>
              <a class="dropdown-item" [routerLink]="['uploadSinglepage']">单页管理</a>
              <div class="dropdown-divider"></div>
              <a class="dropdown-item" href="http://www.baotr.xyz/">退出登录</a>
            </div>
          </li>
      </ul>

      <form class="form-inline my-2 my-lg-0">
          <input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
          <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
        </form>
    </div>  
  </nav>
  <router-outlet></router-outlet>
  
  <footer class="container">
      <p class="float-right"><a href="#"></a></p>
      <p style="text-align:center;">&copy; 2018-2019 云南 &middot; 玉溪九龙池 &middot; 包天瑞 </p>
      <p style="text-align:center;" ><a href="http://www.miitbeian.gov.cn/">滇ICP备19003421号</a> </p>
      <p style="text-align:center;"><a href="#">Back to top </a></p>
    </footer>